package com.aaa.bookproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Set;

/**
 * <p>
 * 
 * </p>
 *
 * @author LvYongQi
 * @since 2021-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    private String loginid;

    private String loginpsw;

    @TableId(value = "staffid",type = IdType.AUTO)
    private Integer staffid;

    @TableField(exist = false)
    private Set<String> roles;

    @TableField(exist = false)
    private Set<String> menus;
}
